package com.ruoyi.bom.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物料采购对象 tql_stap_purchase
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
@Data
public class TqlStapPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String stapCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String stapName;

    /** 批号 */
    @Excel(name = "批号")
    private String batchNum;

    /** 应收数量 */
    @Excel(name = "应收数量")
    private String shoudReceived;

    /** 实收数量 */
    @Excel(name = "实收数量")
    private String actualReceived;

    /** 库存单位 */
    @Excel(name = "库存单位")
    private String stockUnit;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inStock;

    /** 物料描述 */
    @Excel(name = "物料描述")
    private String stapDescrt;

    /** 采购单位 */
    @Excel(name = "采购单位")
    private String buyUnit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal money;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long buyNum;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 合计 */
    @Excel(name = "合计")
    private BigDecimal total;

    /** 收料组织 */
    @Excel(name = "收料组织")
    private String receiveStapOrg;

    /** 收料部门 */
    @Excel(name = "收料部门")
    private String receiveStapDept;

    /** 租户号 */
    @Excel(name = "租户号")
    private String tenantId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String remark1;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String remark2;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String remark3;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setStapCode(String stapCode) 
    {
        this.stapCode = stapCode;
    }

    public String getStapCode() 
    {
        return stapCode;
    }
    public void setStapName(String stapName) 
    {
        this.stapName = stapName;
    }

    public String getStapName() 
    {
        return stapName;
    }
    public void setBatchNum(String batchNum) 
    {
        this.batchNum = batchNum;
    }

    public String getBatchNum() 
    {
        return batchNum;
    }
    public void setShoudReceived(String shoudReceived) 
    {
        this.shoudReceived = shoudReceived;
    }

    public String getShoudReceived() 
    {
        return shoudReceived;
    }
    public void setActualReceived(String actualReceived) 
    {
        this.actualReceived = actualReceived;
    }

    public String getActualReceived() 
    {
        return actualReceived;
    }
    public void setStockUnit(String stockUnit) 
    {
        this.stockUnit = stockUnit;
    }

    public String getStockUnit() 
    {
        return stockUnit;
    }
    public void setInStock(Date inStock) 
    {
        this.inStock = inStock;
    }

    public Date getInStock() 
    {
        return inStock;
    }
    public void setStapDescrt(String stapDescrt) 
    {
        this.stapDescrt = stapDescrt;
    }

    public String getStapDescrt() 
    {
        return stapDescrt;
    }
    public void setBuyUnit(String buyUnit) 
    {
        this.buyUnit = buyUnit;
    }

    public String getBuyUnit() 
    {
        return buyUnit;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setBuyNum(Long buyNum) 
    {
        this.buyNum = buyNum;
    }

    public Long getBuyNum() 
    {
        return buyNum;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setTotal(BigDecimal total) 
    {
        this.total = total;
    }

    public BigDecimal getTotal() 
    {
        return total;
    }
    public void setReceiveStapOrg(String receiveStapOrg) 
    {
        this.receiveStapOrg = receiveStapOrg;
    }

    public String getReceiveStapOrg() 
    {
        return receiveStapOrg;
    }
    public void setReceiveStapDept(String receiveStapDept) 
    {
        this.receiveStapDept = receiveStapDept;
    }

    public String getReceiveStapDept() 
    {
        return receiveStapDept;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }
    public void setRemark3(String remark3) 
    {
        this.remark3 = remark3;
    }

    public String getRemark3() 
    {
        return remark3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stapCode", getStapCode())
            .append("stapName", getStapName())
            .append("batchNum", getBatchNum())
            .append("shoudReceived", getShoudReceived())
            .append("actualReceived", getActualReceived())
            .append("stockUnit", getStockUnit())
            .append("inStock", getInStock())
            .append("stapDescrt", getStapDescrt())
            .append("buyUnit", getBuyUnit())
            .append("price", getPrice())
            .append("money", getMoney())
            .append("buyNum", getBuyNum())
            .append("brand", getBrand())
            .append("total", getTotal())
            .append("receiveStapOrg", getReceiveStapOrg())
            .append("receiveStapDept", getReceiveStapDept())
            .append("tenantId", getTenantId())
            .append("revision", getRevision())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("remark1", getRemark1())
            .append("remark2", getRemark2())
            .append("remark3", getRemark3())
            .toString();
    }
}
